window.home||(home= {
    init: function () {
        var me = this;
        me.getElement();
        me.DEMO.tabItem.each(function (i) {
            var that = $(this);
            that.click(function () {
                that.addClass("active").siblings(".tab-item").removeClass("active");
                me.DEMO.shopListList.eq(i).addClass("active").siblings(".list").removeClass("active");
            });
        });
    },
    getElement: function () {
        var me = this;
        me.DEMO = {
            tabList: $(".tab-list"),
            tabItem: $(".tab-list .tab-item"),
            shopList: $(".shop-list"),
            shopListList: $(".shop-list .list")
        }
    }
});
home.init();
